package com.monolithiot.sso.common.entity;

import com.monolithiot.sso.common.context.Constants;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 2018/12/22 Create by 郭文梁
 * DeviceType
 * 设备类型实体类
 *
 * @author 郭文梁
 * @date 2018/12/22
 */
@Data
@Table(name = "tb_device_type")
public class DeviceType {
    /**
     * id          INT(10)      NOT NULL AUTO_INCREMENT,
     */
    @Id
    @GeneratedValue(generator = Constants.SQL.GENERATOR_JDBC)
    @Column(name = "id", length = 10, nullable = false)
    private Integer id;
    /**
     * name        VARCHAR(255) NOT NULL
     * COMMENT '设备名称',
     */
    @Column(name = "name", nullable = false)
    private String name;
    /**
     * description VARCHAR(255) NOT NULL
     * COMMENT '设备描述',
     */
    @Column(name = "description")
    private String description;
}
